package com.mdinfo.system.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2017/11/22.
 * 权限菜单实体类
 */
@TableName("sys_menu")
@Data
public class SysMenu extends Model<SysMenu> {
    private Integer id;
    private String name;        //名称
    private String tag;         //标识
    private Integer type;        //类型(1:目录,2:菜单,3:按钮)
    private String url;         //菜单url
    private Integer pid;        //父id
    private Integer usable;     //是否可用(0:否,1:是)
    private Date createTime;    //创建时间
    private Integer orderNum;   //排序号
    private String icon;        //目录图标

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
